package com.yiwangqingshui.many.demo;

import java.lang.reflect.Proxy;

/**
 * @author smc
 * @date 2019-02-22 10:16
 * @since
 **/
public class ObjectLoad {

    public static  ParentProxyObject getParentProxyObject(){

        ProxyDemo proxyDemo = new ProxyDemo();
        ParentProxyObject parentProxyObject = (ParentProxyObject) Proxy.newProxyInstance(ParentProxyObject.class.getClassLoader(),new Class[] {ParentProxyObject.class},proxyDemo);
        return parentProxyObject;
    }



}
